package com.ideaaedi.zoo.diy.artifact.openfeign.properties.nested;

import com.ideaaedi.zoo.commonbase.enums.EnumDescriptor;

/**
 * (non-javadoc)
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 1.0.0
 */
public enum HeaderValueSource implements EnumDescriptor {

    /**
     * 直接取配置的值
     */
    DIRECT("直接取配置的值"),

    /**
     * 从MDC取值
     */
    MDC("从MDC取值"),

    /**
     * 从请求头取值
     */
    REQUEST_HEADER("从请求头取值"),

    /**
     * 从请求attribute取值
     */
    REQUEST_ATTRIBUTE("从请求attribute取值"),

    /**
     * 从spring环境变量中取
     */
    SPRING_ENV("从spring环境变量中取");
    
    private final String desc;
    
    HeaderValueSource(String desc) {
        this.desc = desc;
    }
    
    @Override
    public String obtainDescription() {
        return this.desc;
    }
}
